ci: Fix linking of the CI assets in the report
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 12 Feb 2020 18:03:48 +0000 (18:03 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 12 Feb 2020 18:12:53 +0000 (18:12 +0000)
The report is relative to the build directory, and so are the generated
assets.

.gitlab-ci/run-tests.sh

index 9bac5b93c81e7dde0b2c3fd7c71a2f76b3219123..5638fa659381f996dcf14193b05a4bdacec632ae 100755 (executable)
@@ -17,16 +17,18 @@ xvfb-run -a -s "-screen 0 1024x768x24" \
 # generate the reports
 exit_code=$?
 
+cd ${builddir}
+
 $srcdir/.gitlab-ci/meson-junit-report.py \
         --project-name=gtk \
         --job-id="${CI_JOB_NAME}" \
-        --output=${builddir}/report.xml \
-        ${builddir}/meson-logs/testlog.json
+        --output=report.xml \
+        meson-logs/testlog.json
 $srcdir/.gitlab-ci/meson-html-report.py \
         --project-name=gtk \
         --job-id="${CI_JOB_NAME}" \
-        --reftest-output-dir="${builddir}/testsuite/reftests/output" \
-        --output=${builddir}/report.html \
-        ${builddir}/meson-logs/testlog.json
+        --reftest-output-dir="testsuite/reftests/output" \
+        --output=report.html \
+        meson-logs/testlog.json
 
 exit $exit_code